package test01.demo06;

/**
 * @author CSY
 * @date 2025 - 04 - 09
 */
public enum Color {

    RED("红"),

    GREEN("绿"),

    BLUE("蓝");
    private String value ;
    private Color(String value) {
        this.value = value ;
    }
    // 添加成员方法
    public String getValue() {
        return value;
    }

    @Override
    public String toString() {
        return value;
    }
}
